Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses cmp for sortBy #2074

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Uses cmp for sortBy #2074

merged 3 commits into from
Sep 27, 2024

Conversation

genki
Copy link
Contributor

@genki genki commented Sep 21, 2024

Fixes #2073

@dfahlander
Copy link
Collaborator

Thanks! Good you saw this and fixed. Will however change to use the custom cmp from cmp.ts (because it is faster and doesn't throw when data contains null keys)

@genki
Copy link
Contributor Author

genki commented Sep 21, 2024

@dfahlander Okay, I did it :)

@genki genki changed the title Uses indexedDB.cmp for sortBy Uses cmp for sortBy Sep 21, 2024
@dfahlander
Copy link
Collaborator

Thanks for the update. Could you revert the updated lockfile though? It will generate conflicts with another PR I have that also updates it. It might also be a reason for the tests failing.

@genki
Copy link
Contributor Author

genki commented Sep 27, 2024

@dfahlander I see. Just reverted.

@dfahlander dfahlander merged commit 49a0d78 into dexie:master Sep 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collection.sortBy doesn't use IndexedDB.cmp for Uint8Array values
2 participants